.body {
  margin: 0;
  padding: 0;
}

.container {
  width: 100vh;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.card-container {
  width: 300px;
  height: 500px;
  position: relative;
}

.card {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front {
  background-color: #00cec9;
  transform: rotateY(0deg);
}

.card-back {
  background-color: #6c5ce7;
  transform: rotateY(180deg);
}

.card-container:hover .card-front {
  transform: rotateY(180deg);
}

.card-container:hover .card-back {
  transform: rotateY(0deg);
}
